package com.atguigu02.project;

public class CustomerView {
    CustomerList customerList=new CustomerList(10);
    public  void enterMainMenu(){
        boolean isFlat=true;
        while (isFlat){
            System.out.println("\n--------------系统------------------\n");
            System.out.println("              1 添加客户       ");
            System.out.println("              2 修改客户       ");
            System.out.println("              3 删除客户       ");
            System.out.println("              4 客户列表       ");
            System.out.println("              5 退出       \n");
            System.out.println("                 选择（1-5）：");

            char key=CMUtility.readSelection();
            switch (key){
                case'1':
                    addNewCustomer();

                    break;
                case'2':
                    modifyCustomer();

                    break;
                case'3':
                    deleteCustomer();

                    break;
                case'4':
                    listAllCustomers();

                    break;
                case'5':
                     break;
            }

            isFlat=false;

        }

    }
    private void addNewCustomer(){}
    private void modifyCustomer(){}
    private void deleteCustomer(){}
    private void listAllCustomers(){}
    public static void main(String[] args){}

}
